﻿@model LeEdu.MODEL.Group

@{
    ViewBag.Title = "HuaTiThread";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<div id="content-container" class="container">
    <div class="group-header">
        <div class="group-header-inner" style="background: url(http://localhost:5130/Img/@Model.GBACKGROUND); background-repeat: no-repeat; background-size: 100% 100%;">
            <div class="media">
                <div class="media-left">
                    <a href="/Group/GroupHomepage/@Model.GroupID">
                        <img src="http://localhost:5130/Imgs/@Model.GLOGO" alt="@Model.GNAME" class="avatar-square-sm">
                    </a>
                </div>
                <div class="media-body">
                    <h2 class="media-heading">@Model.GNAME</h2>
                    <div class="media-metas">
                       @((Model.UserAndGroup).Count) 个成员
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-8 group-main" style="padding-left:0px;">
            <style>
                .ke-icon-accessory {
                    background-image: url('/assets/img/default/iconfont-accessory.png');
                    background-position: center;
                    width: 16px;
                    height: 16px;
                }

                .ke-icon-accessory-red {
                    background-image: url('/assets/img/default/iconfont-accessory-red.png');
                    background-position: center;
                    width: 16px;
                    height: 16px;
                }
            </style>

            <div class="panel panel-default group-thread">
                <div class="panel-heading">
                    <ol class="breadcrumb">
                        <li><a href="/Group/GroupAll/@Model.GroupID">小组频道</a></li>
                        <li><a href="/Group/GroupHomepage/@Model.GroupID">aaaa</a></li>
                        <li class="active">mingtian </li>
                    </ol>
                    <h2>
                        mingtian
                    </h2>
                    <div class="actions thread-list" id="thread-list">
                    </div>
                    <div class="metas clearfix">
                        <div class="es-share dropdown pull-right">
                            <span class="es-share top" style="font-size:14px;">
                                <a href="javascript:;" class="text-muted" data-toggle="dropdown"><span class="glyphicon glyphicon-share"></span> 分享到</a>

                                <div class="dropdown-menu  js-social-share-params" data-title="mingtian " data-summary="12312" data-message="我正在「aaaa」小组，看到「mingtian 」，很不错哦，一起来看看吧！" data-url="http://zhishile.com/group/4/thread/4" data-picture="">
                                    <a href="javascript:;" class="js-social-share" data-cmd="weixin" title="分享到微信" data-share="weixin" data-qrcode-url="/common/qrcode?text=http%3A%2F%2Fzhishile.com%2Fgroup%2F4%2Fthread%2F4"><i class="es-icon es-icon-weixin"></i></a>
                                    <a href="javascript:;" class="js-social-share" data-cmd="tsina" title="分享到新浪微博" data-share="weibo"><i class="es-icon es-icon-weibo"></i></a>
                                    <a href="javascript:;" class="js-social-share" data-cmd="qq" title="分享到QQ好友" data-share="qq"><i class="es-icon es-icon-qq"></i></a>
                                    <a href="javascript:;" class="js-social-share" data-cmd="qzone" title="分享到QQ空间" data-share="qzone"><i class="es-icon es-icon-qzone"></i></a>
                                </div>

                            </span>
                        </div>
                        发表于 1秒前
                        <span class="divider">•</span>
                        <span>0 次查看</span>

                    </div>
                </div>
                <div class="panel-body" id="post-action">
                    <p>12312</p>
                    <div class="mtl">
                        <a class="btn btn-link" href="/group/4/thread/4?type=onlyOwner&amp;sort=asc"><span class="glyphicon glyphicon-filter"></span> 只看楼主回复</a>

                        <a type="button" class="btn btn-link " href="/group/4/thread/4?type=all&amp;sort=desc"><span class="glyphicon glyphicon-sort"></span> 倒序查看回复</a>


                        <a class="btn btn-link" href="/group/4/thread/4/update"><span class="glyphicon glyphicon-edit"></span> 编辑</a>

                        <a id="elite" title="加精" class="btn btn-link" href="javascript:" data-url="/group/thread/4/setElite"><span class="glyphicon glyphicon-thumbs-up"></span> 加精</a>

                        <a id="stick" title="置顶" class="btn btn-link" href="javascript:" data-url="/group/thread/4/setStick"><span class="glyphicon glyphicon-circle-arrow-up"></span>  置顶</a>


                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">发表回复</div>
                <div class="panel-body">
                    <form data-widget-cid="widget-0" novalidate="novalidate" id="post-thread-form" class="post-thread-form thread-form" method="post" post-url="/group/thread/4/4/post">
                        <div class="form-group">
                            <label class="control-label hide" for="post_content">回复内容</label>
                            <div class="controls">                   
                                <script id="container" name="HCONTENT" type="text/plain">
                                </script>
                                <script type="text/javascript">
                                        var editor = UE.getEditor('container')
                                </script>
                                 <div class="help-block" style="display:none;"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <button id="post-thread-btn" data-submiting-text="正在回复" type="submit" class="post-thread-btn btn btn-primary pull-right">发表</button>
                            </div>
                        </div>
                        <input name="_csrf_token" value="aff51995493c0ceeb9ddca78818419c55223e2b5" type="hidden">
                    </form>

                </div>
            </div>
            <div class="modal fade" id="uploadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                            <h4 class="modal-title" id="myModalLabel">上传附件</h4>
                        </div>
                        <div class="modal-body">
                            <button class="btn btn-default btn-sm upload-img" style="height:33px;" type="button" data-url="/group/thread/upload?group=user">上传</button>
                            <span> (大小不能超过<span style="color:red;">2</span>MB，文件类型支持png ,jpg ,gif ,doc ,xls ,txt ,rar ,zip .)</span>
                            <table id="block-table" class="table table-striped table-condensed mtl">
                                <tbody>
                                    <tr>
                                        <th width="60%">文件名</th>
                                        <th>描述</th>
                                        <th>乐币</th>
                                        <th>操作</th>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="modal-footer">
                            <div class="pull-left text-muted">
                                用户下载附件扣除的乐币会在扣除50%之后添加到您的账户
                            </div>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="button" class="btn btn-primary" id="sure">确定</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4 group-side">
            <div class="panel panel-default">
                <div class="panel-heading">话题作者</div>
                <div class="panel-body">
                    <div class="media">
                        <a class="pull-left" href="/user/4">
                            <img src="/files/default/2015/12-02/140812c46fe0111701.jpg?6.9.6" class="avatar-md">
                        </a>
                        <div class="media-body">
                            <div class="metas mbm">
                                <strong>
                                    <a class="link-light " href="/user/4">Xifire</a>
                                </strong>
                            </div>
                            <div class="content"> <span class="text-muted">头衔:</span>讲师</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading">活跃成员</div>
                <div class="panel-body">
                    <ul class="user-grids">
                        <li style="width:22%;">
                            <a title="" data-original-title="" class="user-link user-avatar-link pull-left media-object media-object-small  js-user-card" href="/user/4" data-card-url="/user/4/card/show" data-user-id="4">
                                <img class="avatar-sm" src="/files/default/2015/12-02/140812c46fe0111701.jpg?6.9.6">
                            </a>

                            <p>
                                <a class="link-light link-muted" href="/user/4">Xifire</a>

                            </p>
                        </li>
                    </ul>
                    <br>
                </div>
            </div>
        </div>
    </div>
</div>

